
<!DOCTYPE html>
<html>

<head>
	<title>{$site_name}</title>
	<meta charset="UTF-8">
	<meta name="keywords" content="{$site_seo_keywords}" />
	<meta name="description" content="{$site_seo_description}">
	<meta name="author" content="ThinkCMF">
	<tc_include file="Public:head" />

	<link rel="stylesheet" href="__TMPL__Public/js/rili/dateSelect.css">
	<script type="text/javascript" src="__TMPL__Public/js/rili/dateSelect.js" charset="utf-8"></script>

</head>

<body class="body-white" id="top">
	<tc_include file="Public:nav" />

	<div class="container tc-main">
		<div class="row">
			<div class="span3">
				<tc_include file="Public:usernav" />
			</div>
			<div class="span9">
				<div class="tabs">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list-alt"></i> 修改资料</a></li>
					</ul>
					<div class="tab-content">
						<div class="tab-pane active" id="one">
							<form class="form-horizontal js-ajax-form" action="{:U('profile/edit_post')}" method="post">
								<div class="control-group">
									<label class="control-label" for="input-user_nicename">昵称</label>
									<div class="controls">
										<input type="text" id="input-user_nicename" placeholder="昵称" name="user_nicename" value="{$user_nicename}">
									</div>
								</div>
								<div class="control-group">
									<label class="control-label" for="input-sex">性别</label>
									<div class="controls">
										<php>
											$sexs=array("0"=>"保密","1"=>"程序猿","2"=>"程序媛");
										</php>
										<select id="input-sex" name="sex">
											<foreach name="sexs" item="vo">
												<php>$sexselected=$key==$sex?"selected":"";</php>
												<option value="{$key}" {$sexselected}>{$vo}</option>
											</foreach>
										</select>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label" for="input-birthday">生日</label>
									<div class="controls">
										<input class="js-date Wdate" type="text" id="input-birthday" placeholder="2013-01-04" name="birthday" onClick="WdatePicker()" value="<neq name="birthday" value="0000-00-00">{$birthday}</neq>">格式：1992-10-27
									</div>
								</div>
								<div class="control-group">
									<label class="control-label" for="input-user_url">个人网址</label>
									<div class="controls">
										<input type="text" id="input-user_url" placeholder="http://zhlblog.com" name="user_url" value="{$user_url}">
									</div>
								</div>
								<div class="control-group">
									<label class="control-label" for="input-signature">个性签名</label>
									<div class="controls">
										<textarea id="input-signature" placeholder="个性签名" name="signature">{$signature}</textarea>
									</div>
								</div>
								<div class="control-group">
									<div class="controls">
										<button type="submit" class="btn js-ajax-submit">保存</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>

		<script type="text/javascript">
			$("#input-birthday").dateSelect();
		</script>
	

	</div>
	<tc_include file="Public:footer" />
</body>

</html>